package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.common.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceItemMapper {

    ServiceItem queryById(Long id);

    List<ServiceItem> selectAll();

    List<ServiceItem> queryForList(QueryObject qo);

    void insert(ServiceItem serviceItem);

    void update(ServiceItem serviceItem);

    void deleteById(Long id);

    ServiceItem selectByName(@Param("name") String name, @Param("id") Long id);

    void changeSaleStatus(@Param("id") Long id, @Param("saleStatus") Integer saleStatus);

    void changeAuditStatus(@Param("id") Long id, @Param("auditingStatus") Integer auditingStatus);
}

